<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>瓜朋网Admin管理平台</title>
<link rel="stylesheet" type="text/css" href="/hdocs/admin/css/theme.css" />
<link rel="stylesheet" type="text/css" href="/hdocs/admin/css/style.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/hdocs/admin/css/ie-sucks.css" />
<![endif]-->
<script type="text/javascript" src="/hdocs/jquery/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/hdocs/admin/js/admin.js"></script>
<script type="text/javascript" src="/hdocs/admin/js/common.js"></script>
</head>
<body>
	<div id="container">
		#set ($menuIndex="account")
		#parse("/admin/inc/header.html")
		<div id="wrapper">
			<div id="content">
				<form action="/admin/account/listAccount.jsp">
					<table>
						<caption>用户管理</caption>
						<tr>
							<th>用户名</th>
							<td><input type="text" id="username" name="username" value="$!account.username"/></td>
							<th>邮箱</th>
							<td><input type="text" id="email" name="email" value="$!account.email"/></td>
							<th>用户类型</th>
							<td>
								<select id="usertype" name="usertype">
									<option value="">-全部-</option>
									<option value="0" #if($!account.usertype == 0) selected #end>普通用户</option>
									<option value="1" #if($!account.usertype == 1) selected #end>达人</option>
									<option value="2" #if($!account.usertype == 2) selected #end>管理员</option>
								</select>
							</td>
							<th>用户状态</th>
							<td>
								<select id="status" name="status">
									<option value="">-全部-</option>
									<option value="1" #if($!account.status == 1) selected #end>已激活</option>
									<option value="0" #if($!account.status == 0) selected #end>未激活</option>
									<option value="-1" #if($!account.status == -1) selected #end>被查封</option>
								</select>
							</td>
							<td>
								<input type="submit" class="bt" value="查询"/>
							</td>
						</tr>
					</table>
				</form>
				<table>
					<thead>
						<tr>
							<th width="5%">ID</th>
							<th width="10%">用户名</th>
							<th width="10%">昵称</th>
							<th width="20%">邮箱</th>
							<th width="10%">用户类型</th>
							<th width="10%">状态</th>
							<th width="10%">关联系统</th>
							<th width="10%">关联账号</th>
							<th width="15%">注册时间</th>
						</tr>
					</thead>
					#foreach( $acct in $accountList)
					<tr>
						<td>$!acct.id</td>
						<td>$!acct.username</td>
						<td>$!acct.nickname</td>
						<td>$!acct.email</td>
						<td>
							#if($!acct.usertype == 0)
								普通用户
							#elseif($!acct.usertype == 1)
								达人
							#elseif($!acct.usertype == 2)
								管理员
							#else
								未知用户
							#end
						</td>
						<td>
							#if($!acct.status == 0)
								未激活
							#elseif($!acct.status == 1)
								已激活
							#else
								被查封
							#end
						</td>
						<td>$!acct.sys</td>
						<td>$!acct.loginid</td>
						<td>$!acct.createdate</td>
					</tr>
					#end
				</table>
			</div>
			#parse("/admin/inc/sidebar.html")
		</div>
		#parse("/admin/inc/footer.html")
	</div>
</body>
</html>
